package com.example.demo.repositiory

import com.example.demo.entity.UserWithCarNumber
import org.springframework.data.jpa.repository.JpaRepository

/**
 * Created with IntelliJ IDEA.
 * Author:流年的樱花逝
 * Date:2018/11/13
 * Time:11:49
 */
interface UserWithCarNumberRepository : JpaRepository<UserWithCarNumber, Long> {

    fun findCarNumberByMobile(mobile: String): List<UserWithCarNumber>

    fun findMobileByCarNumber(carNumber: String):List<UserWithCarNumber>
}